#include <stdio.h>
#include <stdlib.h>
#include "Tour.h"




void initialiser_Tour(Tour *tour)
{
	tour->cout = COUT;
	tour->x = 0;
	tour->y = 0;
	tour->puissance = PUISSANCE;
	tour->disponible = 1;
	tour->distance = 2;
}



void liberer_Tour(Tour *tour)
{
	tour->cout = 0;
	tour->x = 0;
	tour->y = 0;
	tour->puissance = 0;
	tour->disponible = 0;
	tour->distance = 0;
}


int tourgetX(Tour *tour)
	{
		return tour->x;
	}


void toursetX(Tour *tour, int x)
	{
		tour->x = x;
	}


int tourgetY(Tour *tour)
	{
		return tour->y;
	}


void toursetY(Tour *tour, int y)
	{
		tour->y = y;
	}


int tourgetCout(Tour *tour)
	{
		return tour->cout;
	}


void toursetCout(Tour *tour, int ncout)
	{
		tour->cout = ncout;
	}


int tourgetDistance(Tour *tour)
	{
		return tour->distance;
	}


void toursetPuissance(Tour *tour, int ndistance)
	{
		tour->distance = ndistance;
	}







